﻿//JumbotCms_4.1 Final
using System;
using JumbotCms.Common;

namespace JumbotCms.WebFile.User
{
    public partial class _active : JumbotCms.API.UserCenter
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string uUserName = q("username");
            string uEmail = q("email");
            string uMailSign = q("mailsign");
            doh.Reset();
            doh.ConditionExpress = "username=@username and mailsign=@mailsign";
            doh.AddConditionParameter("@username", uUserName);
            doh.AddConditionParameter("@mailsign", uMailSign);
            doh.AddFieldItem("State", 1);
            doh.AddFieldItem("MailSign", "");
            if (doh.Update("jcms_normal_user") == 1)
                Response.Write("<script>alert('您的帐号已激活成功');window.location.href='../login/';</script>");
            else
                Response.Write("<script>alert('参数失败');window.close();</script>");
        }
    }
}
